.class public final Lnbisdk/ix;
.super Ljava/lang/Object;


# static fields
.field public static final mt:J

.field private static mu:Lnbisdk/ix;


# instance fields
.field private mA:Ljava/lang/String;

.field private mB:Ljava/util/Vector;

.field private mC:I

.field private mv:Lnbisdk/fq;

.field private mw:Lcom/navbuilder/nb/f;

.field private mx:Lnbisdk/dx;

.field private my:Lnbisdk/rj;

.field private mz:Lnbisdk/hj;


# direct methods
.method static constructor <clinit>()V
    .locals 4

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    const-wide/16 v2, 0x3e8

    div-long/2addr v0, v2

    const-wide/32 v2, 0x12d53d80

    sub-long/2addr v0, v2

    sput-wide v0, Lnbisdk/ix;->mt:J

    new-instance v0, Lnbisdk/bk;

    invoke-direct {v0}, Lnbisdk/bk;-><init>()V

    return-void
.end method

.method private constructor <init>(Lcom/navbuilder/nb/f;)V
    .locals 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    iput-object v0, p0, Lnbisdk/ix;->mA:Ljava/lang/String;

    new-instance v0, Ljava/util/Vector;

    invoke-direct {v0}, Ljava/util/Vector;-><init>()V

    iput-object v0, p0, Lnbisdk/ix;->mB:Ljava/util/Vector;

    iput-object p1, p0, Lnbisdk/ix;->mw:Lcom/navbuilder/nb/f;

    invoke-static {}, Lnbisdk/mw;->iU()Lnbisdk/dx;

    move-result-object v0

    iput-object v0, p0, Lnbisdk/ix;->mx:Lnbisdk/dx;

    iget-object v0, p0, Lnbisdk/ix;->mx:Lnbisdk/dx;

    invoke-interface {v0}, Lnbisdk/dx;->start()V

    return-void
.end method

.method public static a(Lnbisdk/fq;Lnbisdk/hj;Lcom/navbuilder/nb/f;)V
    .locals 2

    sget-object v0, Lnbisdk/ix;->mu:Lnbisdk/ix;

    if-nez v0, :cond_0

    new-instance v0, Lnbisdk/ix;

    invoke-direct {v0, p2}, Lnbisdk/ix;-><init>(Lcom/navbuilder/nb/f;)V

    sput-object v0, Lnbisdk/ix;->mu:Lnbisdk/ix;

    :cond_0
    sget-object v0, Lnbisdk/ix;->mu:Lnbisdk/ix;

    iput-object p0, v0, Lnbisdk/ix;->mv:Lnbisdk/fq;

    iput-object p1, v0, Lnbisdk/ix;->mz:Lnbisdk/hj;

    const/16 v1, 0x8

    invoke-interface {p1, v1}, Lnbisdk/hj;->isEnabled(I)Z

    move-result v1

    if-eqz v1, :cond_1

    new-instance v1, Lnbisdk/gg;

    invoke-direct {v1, p0, p1}, Lnbisdk/gg;-><init>(Lnbisdk/fq;Lnbisdk/hj;)V

    iput-object v1, v0, Lnbisdk/ix;->my:Lnbisdk/rj;

    :goto_0
    invoke-interface {p0}, Lnbisdk/fq;->cl()Lnbisdk/eg;

    move-result-object v1

    invoke-static {v1}, Lnbisdk/ap;->a(Lnbisdk/eg;)V

    const/16 v1, 0x12

    :try_start_0
    invoke-interface {p1, v1}, Lnbisdk/hj;->L(I)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lnbisdk/ix;->mA:Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_1
    const/16 v1, 0xa

    invoke-virtual {v0, v1}, Lnbisdk/ix;->au(I)I

    move-result v1

    iput v1, v0, Lnbisdk/ix;->mC:I

    iget v1, v0, Lnbisdk/ix;->mC:I

    if-gez v1, :cond_2

    const/4 v1, 0x4

    :goto_2
    iput v1, v0, Lnbisdk/ix;->mC:I

    return-void

    :cond_1
    new-instance v1, Lnbisdk/fe;

    invoke-direct {v1, p0, p1}, Lnbisdk/fe;-><init>(Lnbisdk/fq;Lnbisdk/hj;)V

    iput-object v1, v0, Lnbisdk/ix;->my:Lnbisdk/rj;

    goto :goto_0

    :cond_2
    iget v1, v0, Lnbisdk/ix;->mC:I

    goto :goto_2

    :catch_0
    move-exception v1

    goto :goto_1
.end method

.method public static b(Lnbisdk/hj;)Z
    .locals 3

    const/4 v0, 0x0

    const/16 v1, 0xa

    invoke-interface {p0, v1}, Lnbisdk/hj;->L(I)Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_0

    const-string v2, "4"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    :cond_0
    const/4 v0, 0x1

    :cond_1
    return v0
.end method

.method public static gN()Lnbisdk/ix;
    .locals 2

    sget-object v0, Lnbisdk/ix;->mu:Lnbisdk/ix;

    if-nez v0, :cond_0

    new-instance v0, Ljava/lang/RuntimeException;

    const-string v1, "NBInternal not initialized"

    invoke-direct {v0, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_0
    sget-object v0, Lnbisdk/ix;->mu:Lnbisdk/ix;

    return-object v0
.end method


# virtual methods
.method public final a(Lcom/navbuilder/nb/a;)V
    .locals 1

    iget-object v0, p0, Lnbisdk/ix;->mB:Ljava/util/Vector;

    invoke-virtual {v0, p1}, Ljava/util/Vector;->addElement(Ljava/lang/Object;)V

    return-void
.end method

.method public final a(Lcom/navbuilder/nb/e;)V
    .locals 3

    iget-object v0, p0, Lnbisdk/ix;->mw:Lcom/navbuilder/nb/f;

    invoke-virtual {v0}, Lcom/navbuilder/nb/f;->jG()Ljava/util/Vector;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/Vector;->size()I

    move-result v1

    const/4 v2, 0x0

    :goto_0
    if-ge v2, v1, :cond_0

    invoke-virtual {v0, v2}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcom/navbuilder/nb/c;

    invoke-interface {p0, p1}, Lcom/navbuilder/nb/c;->a(Lcom/navbuilder/nb/e;)V

    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_0
    return-void
.end method

.method public final a(Ljava/lang/Throwable;)V
    .locals 3

    iget-object v0, p0, Lnbisdk/ix;->mw:Lcom/navbuilder/nb/f;

    invoke-virtual {v0}, Lcom/navbuilder/nb/f;->jG()Ljava/util/Vector;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/Vector;->size()I

    move-result v1

    const/4 v2, 0x0

    :goto_0
    if-ge v2, v1, :cond_0

    invoke-virtual {v0, v2}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcom/navbuilder/nb/c;

    invoke-interface {p0, p1}, Lcom/navbuilder/nb/c;->a(Ljava/lang/Throwable;)V

    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_0
    return-void
.end method

.method public final au(I)I
    .locals 1

    :try_start_0
    iget-object v0, p0, Lnbisdk/ix;->mz:Lnbisdk/hj;

    invoke-interface {v0, p1}, Lnbisdk/hj;->L(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v0

    :goto_0
    return v0

    :catch_0
    move-exception v0

    const/4 v0, -0x1

    goto :goto_0
.end method

.method public final bo()V
    .locals 3

    iget-object v0, p0, Lnbisdk/ix;->mw:Lcom/navbuilder/nb/f;

    invoke-virtual {v0}, Lcom/navbuilder/nb/f;->jG()Ljava/util/Vector;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/Vector;->size()I

    move-result v1

    const/4 v2, 0x0

    :goto_0
    if-ge v2, v1, :cond_0

    invoke-virtual {v0, v2}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcom/navbuilder/nb/c;

    invoke-interface {p0}, Lcom/navbuilder/nb/c;->bo()V

    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_0
    return-void
.end method

.method public final destroy()V
    .locals 5

    const/4 v4, 0x0

    iget-object v0, p0, Lnbisdk/ix;->my:Lnbisdk/rj;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/ix;->my:Lnbisdk/rj;

    invoke-interface {v0}, Lnbisdk/rj;->shutdown()V

    iput-object v4, p0, Lnbisdk/ix;->my:Lnbisdk/rj;

    :cond_0
    iget-object v0, p0, Lnbisdk/ix;->mx:Lnbisdk/dx;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lnbisdk/ix;->mx:Lnbisdk/dx;

    invoke-interface {v0}, Lnbisdk/dx;->destroy()V

    iput-object v4, p0, Lnbisdk/ix;->mx:Lnbisdk/dx;

    :cond_1
    iget-object v0, p0, Lnbisdk/ix;->mB:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->size()I

    move-result v1

    const/4 v0, 0x0

    move v2, v0

    :goto_0
    if-ge v2, v1, :cond_2

    iget-object v0, p0, Lnbisdk/ix;->mB:Ljava/util/Vector;

    invoke-virtual {v0, v2}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/navbuilder/nb/a;

    const/4 v3, 0x1

    invoke-interface {v0, v3}, Lcom/navbuilder/nb/a;->a(S)V

    add-int/lit8 v0, v2, 0x1

    move v2, v0

    goto :goto_0

    :cond_2
    invoke-static {}, Lnbisdk/ie;->close()V

    iput-object v4, p0, Lnbisdk/ix;->mv:Lnbisdk/fq;

    iput-object v4, p0, Lnbisdk/ix;->mw:Lcom/navbuilder/nb/f;

    sput-object v4, Lnbisdk/ix;->mu:Lnbisdk/ix;

    return-void
.end method

.method public final dh()Lnbisdk/le;
    .locals 1

    iget-object v0, p0, Lnbisdk/ix;->my:Lnbisdk/rj;

    invoke-interface {v0}, Lnbisdk/rj;->dh()Lnbisdk/le;

    move-result-object v0

    return-object v0
.end method

.method public final gO()Lnbisdk/rj;
    .locals 1

    iget-object v0, p0, Lnbisdk/ix;->my:Lnbisdk/rj;

    return-object v0
.end method

.method public final gP()Lnbisdk/fq;
    .locals 1

    iget-object v0, p0, Lnbisdk/ix;->mv:Lnbisdk/fq;

    return-object v0
.end method

.method public final gQ()Lnbisdk/hj;
    .locals 1

    iget-object v0, p0, Lnbisdk/ix;->mz:Lnbisdk/hj;

    return-object v0
.end method

.method public final gR()Lcom/navbuilder/nb/f;
    .locals 1

    iget-object v0, p0, Lnbisdk/ix;->mw:Lcom/navbuilder/nb/f;

    return-object v0
.end method

.method public final gS()V
    .locals 3

    iget-object v0, p0, Lnbisdk/ix;->mw:Lcom/navbuilder/nb/f;

    invoke-virtual {v0}, Lcom/navbuilder/nb/f;->jG()Ljava/util/Vector;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/Vector;->size()I

    move-result v1

    const/4 v2, 0x0

    :goto_0
    if-ge v2, v1, :cond_0

    invoke-virtual {v0, v2}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_0
    return-void
.end method

.method public final gT()Ljava/lang/Object;
    .locals 1

    const/4 v0, 0x0

    return-object v0
.end method

.method public final gU()Z
    .locals 1

    iget-object v0, p0, Lnbisdk/ix;->mz:Lnbisdk/hj;

    invoke-static {v0}, Lnbisdk/ix;->b(Lnbisdk/hj;)Z

    move-result v0

    return v0
.end method

.method public final gV()I
    .locals 1

    iget v0, p0, Lnbisdk/ix;->mC:I

    return v0
.end method

.method public final getEncoding()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lnbisdk/ix;->mA:Ljava/lang/String;

    return-object v0
.end method

.method public final i(Ljava/lang/String;)V
    .locals 3

    iget-object v0, p0, Lnbisdk/ix;->mw:Lcom/navbuilder/nb/f;

    invoke-virtual {v0}, Lcom/navbuilder/nb/f;->jG()Ljava/util/Vector;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/Vector;->size()I

    move-result v1

    const/4 v2, 0x0

    :goto_0
    if-ge v2, v1, :cond_0

    invoke-virtual {v0, v2}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcom/navbuilder/nb/c;

    invoke-interface {p0, p1}, Lcom/navbuilder/nb/c;->i(Ljava/lang/String;)V

    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_0
    return-void
.end method

.method public final isEnabled(I)Z
    .locals 1

    :try_start_0
    iget-object v0, p0, Lnbisdk/ix;->mz:Lnbisdk/hj;

    invoke-interface {v0, p1}, Lnbisdk/hj;->isEnabled(I)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v0

    :goto_0
    return v0

    :catch_0
    move-exception v0

    const/4 v0, 0x0

    goto :goto_0
.end method
